// 设置邻工配送类型
export const setDeliveryType = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/setDeliveryType', params)
// 邻工订单列表
export const getOrderList = (params) => uni.$uv.http.get('/api/neighborWorkerProfile/getOrderList', {params})
//待办事项
export const toDoOrderList = (params) => uni.$uv.http.get('/api/neighborWorkerProfile/toDoOrderList', {params})
//修改接单状态
export const updateServiceStatus = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/updateServiceStatus', params)
// 获取接单状态
export const getOrderStatus = (params) => uni.$uv.http.get('/api/neighborWorkerProfile/getOrderStatus', {params})
// 获取邻工类型
export const getDeliveryType = (params) => uni.$uv.http.get('/api/neighborWorkerProfile/getDeliveryType', {params})
// 待办事项（接受/拒绝）
export const acceptOrReject = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/acceptOrReject', params)
// 邻工订单详情
export const getOrderInfo = (id) => uni.$uv.http.get('/api/neighborWorkerProfile/getOrderInfo/' + id)
// 邻工抢单
export const grabOrders = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/grabOrders', params)

export const drivingRoute = () => uni.$uv.http.get('/address/drivingRoute')
// 上报位置
export const reportLocation = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/reportLocation', params)
// 开始服务/我已取货
export const startService = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/startService', params)
// IP定位
export const ipLocation = () => uni.$uv.http.get('/address/ipLocation')
// 我已送达/我已完成
export const haveDelivered = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/haveDelivered', params)
// 我已购买
export const havePurchased = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/havePurchased', params)
//发起支付
export const initiationOfPayments = (params) => uni.$uv.http.post('/api/neighborWorkerProfile/initiationOfPayments', params)
